package com.bzxgc.sgwer.dao.project;

import com.bzxgc.sgwer.entity.project.ProjectFunpoint;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProjectFunpointMapper {

    /**
     * 添加
     * @param projectFunpoint
     */
    void addProjectFunpoint(ProjectFunpoint projectFunpoint);

    /**
     * 修改
     * @param projectFunpoint
     */
    void updateProjectFunpoint(ProjectFunpoint projectFunpoint);

    /**
     * 删除
     * @param ids
     * @param status 1正常 2删除
     */
    void updateProjectFunpointStatus(@Param("ids") Long[] ids, @Param("status") Integer status);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    ProjectFunpoint getProjectFunpointById(@Param("id") Long id);

    /**
     * 根据用户名查询用户
     * @param name
     * @return
     */
    ProjectFunpoint getProjectFunpointByName(@Param("name") String name);

    /**
     * 查询所有用户
     * @return
     */
    List<ProjectFunpoint> getProjectFunpointList();

    /**
     * 分页查询用户
     * @param pageNum
     * @param pageSize
     * @param name
     * @return
     */
    List<ProjectFunpoint> getProjectFunpointListByPage(@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("name") String name);

    /**
     * 获取用户总数
     * @param name
     * @return
     */
    Integer getProjectFunpointCount(@Param("name") String name);
}
